using System;
using CommandSystem;
using Exiled.API.Features;
using RgCore.Misc;

namespace RgCore.Commands.RgRACommands
{
    public class AddScore : ICommand
    {
        public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
        {
            Player.Get(sender)?.AddScore(int.Parse(arguments.At(0)), "手动加分");
            response = String.Empty;
            return true;
        }

        public string Command { get; } = "addscore";
        public string[] Aliases { get; } = Array.Empty<string>();
        public string Description { get; } = "手动加分";
    }
}